export default {
  tableColumnOptions: [
    {
      label: '昵称',
      prop: 'nickname'
    },
    {
      label: '账号',
      prop: 'username'
    },
    {
      label: '用户角色',
      prop: 'role'
    },
    {
      label: '账号状态',
      prop: 'status',
      columnType: true,
      soltName: 'tag'
    },
    {
      label: '姓名',
      prop: 'real_name'
    },
    {
      label: '操作',
      width: '300',
      columnType: true,
      soltName: 'operation'
    }
  ],
  searchForm: {
    ref: null,
    formData: {
      account: '', // 账号
      // roleType: '',
      createDate: ''
    },
    fieldList: [
      {
        label: '账号',
        value: 'account',
        type: 'input',
        comp: 'el-input',
        event: 'account'
      },
      // {
      //   label: '角色类型',
      //   value: 'roleType',
      //   type: 'select-arr',
      //   comp: 'el-select',
      //   list: 'roleList',
      //   bind: { disabled: false },
      //   arrLabel: 'label',
      //   arrKey: 'value'
      // },
      // {
      //   label: '创建时间',
      //   value: 'createDate',
      //   type: 'date',
      //   bind: { valueFormat: 'yyyy-MM-dd' },
      //   comp: 'el-date-picker'
      // },
      {
        labelRender: (h) => {
          return (
            <div class='label_render'>
              <div>创建时间</div>
              <el-tooltip>
                <template slot='content'>
                  <span>创建时间范围</span>
                </template>
                <i
                  class='el-icon-warning-outline'
                  style='cursor: pointer;margin-right:2px;'
                />
              </el-tooltip>
            </div>
          )
        },
        // rules: {
        //   required: true,
        //   message: '请选择element日期',
        //   trigger: 'change'
        // },
        value: 'createDate',
        type: 'daterange',
        comp: 'el-date-picker',
        bind: {
          rangeSeparator: '-',
          startPlaceholder: '开始日期',
          endPlaceholder: '结束日期'
        }
      }
    ],
    listTypeInfo: {
      roleList: [
        {
          label: '超级管理员',
          value: '超级管理员'
        },
        {
          label: '管理员',
          value: '管理员'
        },
        {
          label: '人才',
          value: '人才'
        },
        {
          label: '学院',
          value: '学院'
        },
        {
          label: '专家',
          value: '专家'
        },
        {
          label: '评委',
          value: '评委'
        }
      ]
    }
  },
  addAccountForm: {
    ref: null,
    formData: {
      username: '', // 账号
      password: '', // 密码
      nickname: '', // 用户名
      email: '', // 邮箱
      mobile: '', // 手机号
      spouse: 0, // 配偶功能
      role: '超级管理员', // 角色选择
      valid: '', // 账号有效期
      role_classify: '',
      year_salary: '',
      settle_down: '',
      startup: '',
      learning: '',
      company: ''
    },
    fieldList: [
      {
        label: '账号',
        value: 'username',
        type: 'input',
        comp: 'el-input',
        event: 'account'
      },
      {
        label: '密码',
        value: 'password',
        type: 'input',
        comp: 'el-input',
        event: 'account',
        disabled: false
      },
      {
        label: '昵称',
        value: 'real_name',
        type: 'input',
        comp: 'el-input',
        event: 'account'
      },
      // {
      //   label: '姓名',
      //   value: 'nickname',
      //   type: 'input',
      //   comp: 'el-input',
      //   event: 'account'
      // },
      {
        label: '邮箱',
        value: 'email',
        type: 'input',
        comp: 'el-input',
        event: 'email'
      },
      {
        label: '手机号',
        value: 'mobile',
        type: 'input',
        comp: 'el-input',
        event: 'mobile'
      },
      {
        label: '配偶功能',
        value: 'spouse',
        slotName: 'spouse',
        event: 'spouse'
      },
      {
        label: '角色选择',
        value: 'role',
        slotName: 'role',
        event: 'role',
        list: 'roleList'
      },
      {
        label: '账号有效期',
        value: 'valid',
        type: 'date',
        bind: { valueFormat: 'yyyy-MM-dd' },
        comp: 'el-date-picker'
      }

    ],
    listTypeInfo: {
      roleList: [
        {
          label: '超级管理员'
        },
        {
          label: '管理员'
        },
        {
          label: '人才'
        },
        {
          label: '学院'
        },
        {
          label: '专家'
        },
        {
          label: '评委'
        }
      ],
      schoolList: []
    },
    rules: {
      username: [
        { required: true, message: '请输入用户名', trigger: 'blur' },
        {
          pattern:
          /^[^\u4e00-\u9fa5]+$/,
          message: '禁止输入中文'
        }
      ],
      password: [
        { required: true, message: '请输入密码', trigger: 'blur' }
      ],
      nickname: [
        { required: true, message: '请输入用户名', trigger: 'blur' }
      ],
      real_name: [
        { required: true, message: '请输入真实姓名', trigger: 'blur' }
      ],
      email: [
        { required: true, message: '请输入邮箱', trigger: 'blur' }
      ],
      mobile: [
        { required: true, message: '请输入手机号', trigger: 'blur' }
      ],
      valid: [
        { required: true, message: '请选择账号有效期', trigger: 'blur' }
      ]
    }
  },
  // 默认表单  
  fieldList: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    }
  ],
  //管理员表单
  fieldList4: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    },
    {
      label: '权限选择',
      value: 'group_id',
      slotName: 'group_id',
      event: 'group_id',
      list: 'permissionsList'
    }
  ],
  // 人才表单
  fieldList1: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    },
    {
      label: '年薪',
      value: 'year_salary',
      type: 'input',
      comp: 'el-input',
      format: '***万元',
      bind: { clearable: true },
      widthSize: 1
    },
    {
      label: '安家费',
      value: 'settle_down',
      type: 'input',
      comp: 'el-input',
      format: '***万元',
      bind: { clearable: true },
      widthSize: 1
      // labelWidth: '150px'
    },
    {
      label: '科研启动费',
      value: 'startup',
      type: 'input',
      comp: 'el-input',
      format: '***万元',
      bind: { clearable: true },
      widthSize: 1
    },
    {
      label: '学院选择',
      value: 'role_classify',
      slotName: 'role_classify',
      event: 'role_classify',
      list: 'schoolList'
    }
  ],
  // 学院表单
  fieldList2: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    },
    {
      label: '学院选择',
      value: 'role_classify',
      slotName: 'role_classify',
      event: 'role_classify',
      list: 'schoolList'
    }
  ],
  // 学院表单
  fieldList3: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    },
    {
      label: '姓名',
      value: 'real_name',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '学术头衔',
      value: 'learning',
      type: 'input',
      comp: 'el-input',
      bind: { clearable: true },
      widthSize: 1
    },
    {
      label: '所在单位',
      value: 'company',
      type: 'input',
      comp: 'el-input',
      bind: { clearable: true },
      widthSize: 1
    },
    
  ],
  // 评委
  fieldList5: [
    {
      label: '账号',
      value: 'username',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '密码',
      value: 'password',
      type: 'input',
      comp: 'el-input',
      event: 'account',
      disabled: false
    },
    {
      label: '昵称',
      value: 'nickname',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    },
    {
      label: '邮箱',
      value: 'email',
      type: 'input',
      comp: 'el-input',
      event: 'email'
    },
    {
      label: '手机号',
      value: 'mobile',
      type: 'input',
      comp: 'el-input',
      event: 'mobile'
    },
    {
      label: '配偶功能',
      value: 'spouse',
      slotName: 'spouse',
      event: 'spouse'
    },
    {
      label: '角色选择',
      value: 'role',
      slotName: 'role',
      event: 'role',
      list: 'roleList'
    },
    {
      label: '账号有效期',
      value: 'valid',
      type: 'date',
      bind: { valueFormat: 'yyyy-MM-dd' },
      comp: 'el-date-picker'
    },
    {
      label: '姓名',
      value: 'real_name',
      type: 'input',
      comp: 'el-input',
      event: 'account'
    }
  ],
}

